package com.raymond.sgip.msg.request;

import com.raymond.sgip.enums.CommandIdType;
import com.raymond.sgip.msg.AbstractSgipMessage;

/**
 * 连接请求
 *
 * @author :  raymond
 * @version :  V1.0
 * @date :  2021-08-05 11:26
 */
public class ConnectRequestMessage extends AbstractSgipMessage {
    /**
     * 登录类型，1字节
     */
    private short loginType = 1;
    /**
     * 登录名，16字节
     */
    private String loginName = "";
    /**
     * 密码，16字节
     */
    private String loginPassowrd = "";
    /**
     * 扩展，8字节
     */
    private String reserve = "";

    public ConnectRequestMessage(int sequenceId) {
        super(sequenceId);
    }

    @Override
    public int getCommandId() {
        return CommandIdType.CONNECT_REQUEST.getCommandId();
    }

    public short getLoginType() {
        return loginType;
    }

    public void setLoginType(short loginType) {
        this.loginType = loginType;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getLoginPassowrd() {
        return loginPassowrd;
    }

    public void setLoginPassowrd(String loginPassowrd) {
        this.loginPassowrd = loginPassowrd;
    }

    public String getReserve() {
        return reserve;
    }

    public void setReserve(String reserve) {
        this.reserve = reserve;
    }
}
